package com.zdj.hashcode;

/**
 * @author zhangdj
 * @date 2021-10-13 17:38:06
 */
public class A {

    private Integer a;

    @Override
    public int hashCode() {
        return 1;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof A) {
            return ((A) obj).a == this.a;
        } else {
            return false;
        }
    }

    public A(Integer a) {
        this.a = a;
    }

    public Integer getA() {
        return a;
    }

    public void setA(Integer a) {
        this.a = a;
    }
}
